package com.yeshine.opendata.service.impl;

import com.yeshine.opendata.core.ServiceBase;
import com.yeshine.opendata.dao.SysVisitLogDao;
import com.yeshine.opendata.entity.SysVisitLog;
import com.yeshine.opendata.service.ISysVisitLogService;
import com.yeshine.opendata.utils.PageResult;
import com.yeshine.opendata.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by taohj on 2014/10/13.
 */

@Service
public class SysVisitLogServiceImpl extends ServiceBase<SysVisitLog> implements ISysVisitLogService {

    @Autowired
    private SysVisitLogDao dao;

    @Override
    public Result<SysVisitLog> create(SysVisitLog sysVisitLog) {
        return new Result<SysVisitLog>(dao.insert(sysVisitLog) > 0);
    }

    @Override
    public Result<SysVisitLog> remove(SysVisitLog sysVisitLog) {
        return null;
    }

    @Override
    public Result<SysVisitLog> modify(SysVisitLog sysVisitLog) {
        return new Result<SysVisitLog>(dao.insert(sysVisitLog) > 0);
    }

    @Override
    public Result<SysVisitLog> getById(Integer id) {
        return null;
    }

    @Override
    public Result<SysVisitLog> getList(SysVisitLog sysVisitLog) {
        return null;
    }

    @Override
    public Result<SysVisitLog> getByPage(PageResult<SysVisitLog> pageResult) {
        return null;
    }
}
